﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GesturePlugin;

namespace GestureActionPlugin
{
    class GestureActionAlgorithmManager
    {
        private IGestureActionAlgorithm _gestureActionAlgorithm;

        public IGestureActionAlgorithm AutoClickAlgorithm
        {
            get
            {
                return _gestureActionAlgorithm;
            }
            set
            {
                if (_gestureActionAlgorithm != null)
                    Stop();
                _gestureActionAlgorithm = value;
            }
        }
        public void Start()
        {
            _gestureActionAlgorithm.Start();
        }
        public void Stop()
        {
            _gestureActionAlgorithm.Stop();
        }

        public void ExecuteAction(Gesture gesture)
        {
            _gestureActionAlgorithm.ExecuteAction(gesture);
        }
    }
}
